package com.topfinance.payment.ebo;

// Generated 2011-1-9 9:12:59 by Hibernate Tools 3.4.0.Beta1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TC2Fmt8583 generated by hbm2java
 */
@Entity
@Table(name = "T_CFG_FMT_8583")
public class TCfgFmt8583Ebo implements java.io.Serializable {

	private Integer id;

	private TCfgFormatEbo TCfgFormat;

	private Integer sequn;

	private String subSeq;

	private String position;

	private String name;

	private String fldType;

	private String length;

	private String memo;

	private Integer varLen;

	private Integer basLen;

	public TCfgFmt8583Ebo() {
	}

	public TCfgFmt8583Ebo(Integer id) {
		this.id = id;
	}

	public TCfgFmt8583Ebo(Integer id, TCfgFormatEbo TCfgFormat, Integer sequn, String subSeq, String position,
			String name, String fldType, String length, String memo, Integer varLen, Integer basLen) {
		this.id = id;
		this.TCfgFormat = TCfgFormat;
		this.sequn = sequn;
		this.subSeq = subSeq;
		this.position = position;
		this.name = name;
		this.fldType = fldType;
		this.length = length;
		this.memo = memo;
		this.varLen = varLen;
		this.basLen = basLen;
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false)
	@SequenceGenerator(name = "CFG_FORMAT_GEN", sequenceName = "S_CFG_FORMAT")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CFG_FORMAT_GEN")		
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "OID")
	public TCfgFormatEbo getTCfgFormat() {
		return this.TCfgFormat;
	}

	public void setTCfgFormat(TCfgFormatEbo TCfgFormat) {
		this.TCfgFormat = TCfgFormat;
	}

	@Column(name = "SEQUN", precision = 22, scale = 0)
	public Integer getSequn() {
		return this.sequn;
	}

	public void setSequn(Integer sequn) {
		this.sequn = sequn;
	}

	@Column(name = "SUB_SEQ", length = 10)
	public String getSubSeq() {
		return this.subSeq;
	}

	public void setSubSeq(String subSeq) {
		this.subSeq = subSeq;
	}

	@Column(name = "POSITION", length = 20)
	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "NAME", length = 40)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "FLD_TYPE", length = 10)
	public String getFldType() {
		return this.fldType;
	}

	public void setFldType(String fldType) {
		this.fldType = fldType;
	}

	@Column(name = "LENGTH", length = 20)
	public String getLength() {
		return this.length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	@Column(name = "MEMO", length = 40)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "VAR_LEN", precision = 22, scale = 0)
	public Integer getVarLen() {
		return this.varLen;
	}

	public void setVarLen(Integer varLen) {
		this.varLen = varLen;
	}

	@Column(name = "BAS_LEN", precision = 22, scale = 0)
	public Integer getBasLen() {
		return this.basLen;
	}

	public void setBasLen(Integer basLen) {
		this.basLen = basLen;
	}

}
